FullScreen

Availability

Flash Lite 1.1.

Description

Sets the size of the display area to be used for rendering. The size can be full screen or less-than full screen.

This command is supported only when Flash Lite is running in stand-alone mode. It is not supported when the player is running in the context of another application (for example, as a plug-in to a browser).

Command

Parameters

Value returned

"FullScreen"

size Either a defined variable or a constant string value, with one of these values: true (full screen) or false (less than full screen). Any other value is treated as the value false.

-1: Not supported.

0: Supported.

Example

The following example attempts to set the display area to full screen. If the returned value is other than 0, it sends the playback head to the frame labeled smallScreenMode:

status = fscommand2("FullScreen", true);
if(status != 0) {
  gotoAndPlay("smallScreenMode");
}